package com.dhcc.bpm.modules.scf.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.dhcc.bpm.modules.scf.dto.ScfContractInfoDTO;
import com.dhcc.bpm.modules.scf.entity.ScfContractInfo;
import com.dhcc.bpm.modules.scf.vo.ScfContractInfoVO.ScfGetContractDetailsVO;
import com.dhcc.bpm.modules.scf.vo.ScfContractInfoVO.ScfGetContractListVO;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 合同信息-Mapper接口
 */
@Repository
public interface ScfContractInfoMapper extends BaseMapper<ScfContractInfo> {
    /**
     * 自定义分页
     *
     * @param page
     * @param scfContractInfo
     * @return
     */
    List<ScfGetContractListVO> selectScfContractInfoPage(IPage<ScfGetContractListVO> page, ScfContractInfoDTO scfContractInfo);

    /**
     * 自定义查询详情
     *
     * @param scfContractInfo
     * @return
     */
    ScfGetContractDetailsVO getDetails(String rowId);

    /**
     * 根据合同编号查询合同记录id
     *
     * @param contractNum
     * @return
     */
    String selectRowIdByContractNum(String contractNum  ,String orgCode);
    boolean deleteByIds(String[] ids);
}
